package Homework.cms.servlet;

import Homework.cms.articles.Articles;
import Homework.cms.articles.ArticlesDao;
import com.xcms.test.news.News;
import com.xcms.test.news.NewsDao;

import java.util.Date;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;

public class test {
    public static void main(String[] args)  {
        //SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        //Timestamp now = new Timestamp(System.currentTimeMillis());
        //String str = df.format(now);
        //String time = df.format(new Date());
        //Timestamp ts = Timestamp.valueOf(time);
        //Timestamp nowtime = new Timestamp(System.currentTimeMillis());

//        Timestamp nowtime = new Timestamp((new java.util.Date()).getTime());
//        System.out.println(nowtime);
        Articles articles=new Articles();
        articles.setId(25);
        articles.setTitle("33");
        articles.setContent("333333");
        ArticlesDao.update(articles);
    }

}
